<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<ol class="breadcrumb">
    <li><a href="__ROOT__/Admin/UserGroupFunction">权限管理</a></li>
    <li class="active">修改权限组</li>
</ol>
<form action="__ROOT__/Admin/UserGroup/save" method="post">
    <input type="hidden" name="id" value="{$groupInfo['id']}">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>名称：</div>
        <div class="col-lg-3">
            <input type="text" name="name" value="{$groupInfo['name']}" class="form-control" />
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>描述：</div>
        <div class="col-lg-3">
            <input type="text" name="description" value="{$groupInfo['description']}" class="form-control" />
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>系统组：</div>
        <div class="col-lg-3">
            <select name="isSystem" class="form-control">
                <if condition="$groupInfo['isSystem'] eq 1">
                    <option value="1" selected>是</option>
                    <option value="0">否</option>
                    <else />
                    <option value="1">是</option>
                    <option value="0" selected>否</option>
                </if>
            </select>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>功能权限：</div>
        <div class="col-lg-6">
            <volist name="functions" id="vo">
                <div class="functionBox">
                    <div class="functionStyle clear"><b>{$vo.name}</b></div>
                    <ul class="functionList">
                        <volist name="vo['child']" id="voo">
                            <if condition="$voo.isChecked eq 1">
                                <li><input type="checkbox" name="functionId[]" value="{$voo.id}" checked />{$voo.name}</li>
                                <else />
                                <li><input type="checkbox" name="functionId[]" value="{$voo.id}" />{$voo.name}</li>
                            </if>
                        </volist>
                    </ul>
                </div>
            </volist>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>状态：</div>
        <div class="col-lg-3">
            <if condition="$groupInfo['status'] eq 0">
                <input type="radio" name="status" value="0" checked> <span class="red">禁用</span>
                <input type="radio" name="status" value="1"> <span class="green">起用</span>
                <else />
                <input type="radio" name="status" value="0"> <span class="red">禁用</span>
                <input type="radio" name="status" value="1" checked> <span class="green">起用</span>
            </if>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<include file="./Application/Admin/View/Public/footer.html" />